<template>
	<view class="">
		<view class="head">
			<view class="title1">
				AI智能识图
			</view>
		</view>
		<view class="container">
			<view class="list" v-for="(item,index) in list" :key='index' @click="goPage(item.target)">
				{{item.text}}
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				list: [{
						text: '通用文字识别',
						target: '../general/general'
					},
					{
						text: '身份证识别',
						target: ''
					},
					{
						text: '银行卡识别',
						target: ''
					}, {
						text: '行驶证识别',
						target: ''
					},
				]
			}
		},
		onLoad() {

		},
		methods: {
			goPage(e) {
				uni.navigateTo({
					url: e
				})
			}
		}
	}
</script>

<style lang="scss">
	.head {
		height: 400upx;
		width: 750upx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background-color: blue;

		.title1 {
			text-align: center;
			font-size: $uni-font-size-lg;
			color: $uni-text-color-inverse;
		}
	}

	.container {
		width: 750upx;
		padding: 30upx;
		display: flex;
		flex-wrap: wrap;

		.list {
			width: 330upx;
			height: 80upx;
			border: 1upx solid darkgray;
			font-size: $uni-font-size-base;
			margin: 0 30upx 30upx 0;
			text-align: center;
			line-height: 80upx
		}

		.list::last {
			margin-right: 0
		}
	}
</style>
